package com.gmrz.uap.fidohislog;

import com.gmrz.uap.cfg.SystemConst;
import com.gmrz.uap.common.ServiceSupport;
import com.gmrz.uap.model.FidoLog;
import com.gmrz.uap.util.Identities;
import com.jfinal.plugin.activerecord.Page;

import java.io.UnsupportedEncodingException;
import java.util.Map;

public class FidoHisLogService extends ServiceSupport {
    public static final FidoHisLogService me = new FidoHisLogService();

    /**
     * 根据页面传过来的条件进行 业务历史日志 分页查询
     *
     * @param fidoLog 业务日志信息
     * @param page    页号
     * @param rows    行数
     * @param sort    排序字段
     * @param order   升序/降序
     * @return　分页结果 Page<FidoLog>
     */
    public Page<FidoLog> findFidoHisLogListForPaginate(FidoLog fidoLog, int page, int rows, String sort, String order, Map<String, Object> condition) {
        return FidoLog.dao.findFidoHisLogListForPaginate(fidoLog, page, rows, sort, order, condition);
    }


    public String findFidoLogInfo(String flID, String infoType) throws UnsupportedEncodingException {
        return FidoLog.dao.findFidoHisLogInfo( flID, infoType);
    }
}
